
import com.bryanprogramming.zend.gui.Game;
import com.bryanprogramming.zend.logic.Dictionary;
import com.bryanprogramming.zend.logic.Player;
import com.bryanprogramming.zend.logic.ZEnd;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author charlesbryan
 */
public class Application {

    static final char EMPTY = ' ';

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Dictionary.load();
        try {
            // Set System L&F
            UIManager.setLookAndFeel(
                    UIManager.getCrossPlatformLookAndFeelClassName());
        }
        catch (UnsupportedLookAndFeelException e) {
            // handle exception
        }
        catch (ClassNotFoundException e) {
            // handle exception
        }
        catch (InstantiationException e) {
            // handle exception
        }
        catch (IllegalAccessException e) {
            // handle exception
        }
        ZEnd gameInOtherThread = new ZEnd();
        Player p = new Player(5000);
        //Game.createAndShowGUI(gameInOtherThread);
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                Game.createAndShowGUI(gameInOtherThread, p);
            }
        });

    }

}
